﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace SassModule
{
    public class ResponseData
    {
        public ResponseData(string info,object data,int code=0)
        {
            Info = info;
            Data = data;
            if (code==0)
            {
                if (info==null)
                {
                    this.Code = 200;
                }
                else
                {
                    this.Code = 500;
                }
            }
            else
            {
                this.Code = code;
            }
        }
        public int Code { get; set; }
        public string Info { get; set; }
        public object Data { get; set; }
    }
}
